package com.hustmm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 材料管理数据模版对象 mm_template
 * 
 * @author ruoyi
 * @date 2024-05-23
 */
public class MmTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模版id */
    private Long templateId;

    /** 模版名称 */
    @Excel(name = "模版名称")
    private String name;

    /** 属性类型 */
    @Excel(name = "属性类型")
    private Long propertyType;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String propertyName;

    /** 属性值 */
    @Excel(name = "属性值")
    private String propertyValue;

    /** 检验方法 */
    @Excel(name = "检验方法")
    private Long testMethod;

    /** 状态（1正常 0停用） */
    @Excel(name = "状态", readConverterExp = "1=正常,0=停用")
    private Long status;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPropertyType(Long propertyType) 
    {
        this.propertyType = propertyType;
    }

    public Long getPropertyType() 
    {
        return propertyType;
    }
    public void setPropertyName(String propertyName) 
    {
        this.propertyName = propertyName;
    }

    public String getPropertyName() 
    {
        return propertyName;
    }
    public void setPropertyValue(String propertyValue) 
    {
        this.propertyValue = propertyValue;
    }

    public String getPropertyValue() 
    {
        return propertyValue;
    }
    public void setTestMethod(Long testMethod) 
    {
        this.testMethod = testMethod;
    }

    public Long getTestMethod() 
    {
        return testMethod;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("name", getName())
            .append("propertyType", getPropertyType())
            .append("propertyName", getPropertyName())
            .append("propertyValue", getPropertyValue())
            .append("testMethod", getTestMethod())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
